#ifndef NOTICEITEM_H
#define NOTICEITEM_H

#include <QWidget>
#include"publicstruct.h"

namespace Ui {
class NoticeItem;
}

class NoticeItem : public QWidget
{
    Q_OBJECT

public:
    explicit NoticeItem(struct st_notice m_notice,QWidget *parent = nullptr);
    ~NoticeItem();
signals:
    //同意或拒绝的信号
    void agreeOrRefuse(int flag,QVariant var);   //0 拒绝 1 同意  2 删除
private slots:
    void on_btn_agree_clicked();

    void on_btn_refuse_clicked();

    void on_btn_delete_clicked();

    void on_btn_add_clicked();

private:
    Ui::NoticeItem *ui;
    struct st_notice m_notice;

};

#endif // NOTICEITEM_H
